* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    touch-action: none;
    background-color: #1a1a1a;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
}

/* 摇杆样式 */
.joystick-container {
    position: absolute;
    width: 150px;
    height: 150px;
}

#move-joystick {
    left: 50px;
    bottom: 50px;
}

#rotate-joystick {
    right: 50px;
    bottom: 50px;
}

.joystick-base {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.joystick-handle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 技能按钮样式 */
#skill-buttons {
    position: absolute;
    right: 50px;
    bottom: 50px;
}

.skill-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 24px;
    cursor: pointer;
    outline: none;
}

.skill-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.game-over button {
    background: #3498db;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}

.game-over button:hover {
    background: #2980b9;
} 